class Student{

}

public class Test {

    public static void main(String[] args) {
        MyArray<String> myArray = new MyArray<>();

        myArray.setVal(0, "abcd");
        // myArray.setVal(1, 100);
        String ret = myArray.getPos(0);
        System.out.println(ret);

        System.out.println("======================");

        MyArray<Integer> myArray1 = new MyArray<>();
        myArray1.setVal(0, 100);
        myArray1.setVal(1, 200);

        Integer pos = myArray1.getPos(0);
        System.out.println(pos);

        System.out.println("=====================");

        MyArray<Student> myArray2 = new MyArray<>();
        myArray2.setVal(0, new Student());

        Student student = myArray2.getPos(0);
    }

    public static void main4(String[] args) {
        MyArray myArray = new MyArray();
        myArray.setVal(0, 10);
        myArray.setVal(1, "hello");
        String ret = (String) myArray.getPos(1);
        System.out.println(ret);
    }

    public static void main3(String[] args) {
        Integer a = 100;
        Integer b = 100;
        System.out.println(a == b);

    }

    public static void main2(String[] args) {
        Integer i = Integer.valueOf(100);
        int a = i;

        int b = i.intValue();
        System.out.println(a);
        System.out.println(b);
    }

    public static void main1(String[] args) {
        int i = 10;
        Integer ii = Integer.valueOf(i);
        System.out.println(ii);

        Integer iii = i;
        System.out.println(iii);
    }
}
